<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.w3.org/1999/xhtml">

<head th:replace="admin/_fragments_after :: head(~{::title})">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link href="http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../../static/css/my.css" th:href="@{/css/my.css}">
    <title>博客后台</title>
</head>

<body class="m-bloght">
    <!--导航-->
    <nav th:replace="admin/_fragments_after :: menu(2)" id="nav" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui teal header item">DyBlogs后台</h2>
                <a href="#" class="m-item item m-mobile-hide m-text-mini"><i class="home icon"></i>首页</a>
                <a href="#" class="active red m-item item m-mobile-hide m-text-mini"><i class="idea icon"></i>博客</a>
                <a href="#" class="m-item item m-mobile-hide m-text-mini"><i class="idea icon"></i>分类</a>
                <a href="#" class="m-item item m-mobile-hide m-text-mini"><i class="tags icon"></i>标签</a>
                <div class="right m-item m-mobile-hide menu">
                    <div class="ui dropdown item">
                        <div class="text">
                            <img src="../../static/images/dy.jpg" th:src="@{/images/dy.jpg}" alt="" class="ui avatar image">
                            丁宇
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="#" class="item">注销</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--目录图标-->
        <!--menu_toggle按钮事件，让导航在手机端可以点击展开-->
        <a href="#" class="ui menu_toggle black icon button m-top-right m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
    <!--二级导航-->
    <div class="ui attached pointing menu">
        <div class="ui container">
            <div class="right menu">
                <a href="#" class="item">发布</a>
                <a href="#" class="teal active item">列表</a>
            </div>
        </div>
    </div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <!--中间内容-->
    <div class="m-container">
        <!--container自适应-->
        <div class="ui stackable container">
            <form id="selectBycon" action="#" method="POST" class="ui secondary segment form">
                <div class="fields inline">
                    <div class="field">
                        <input type="text" name="title" placeholder="标题">
                    </div>
                    <div class="field">
                        <div class="ui labeled action input">
                            <div id="123" class="ui type selection dropdown">
                                <input type="hidden" name="type">
                                <i class="dropdown icon"></i>
                                <div class="default text">分类</div>
                                <div id="types" class="menu">
<!--                                    <div class="item typeName">错误认知</div>-->
<!--                                    <div class="item typeName">开发者手册</div>-->
                                </div>
                            </div>
                            <button id="clear_but" class="ui clear button">clear</button>
                        </div>
                    </div>
                    <div class="field">
                        <div class="ui checkbox">
                            <input type="checkbox" name="recommend">
                            <label>推荐</label>
                        </div>
                    </div>
                    <div class="field">
                        <a href="#" onclick="submitSelectBycon()" class="ui mini teal basic button">
                            <i class="search icon"></i>搜索
                        </a>
                    </div>
                </div>
            </form>
            <table class="ui center compact teal aligned celled table">
                <thead>
                    <tr>
                        <th></th>
                        <th>标题</th>
                        <th>类型</th>
                        <th>推荐</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="tbody">
                    <tr>
<!--                        <td>1</td>-->
<!--                        <td>java的特性</td>-->
<!--                        <td>java</td>-->
<!--                        <td>是</td>-->
<!--                        <td>2021-4-25 15:37</td>-->
<!--                        <td>-->
<!--                            <a href="#" class="ui mini teal button">编辑</a>-->
<!--                            <a href="#" class="ui mini teal button">删除</a>-->
<!--                        </td>-->
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <th colspan="7">
                            <div class="ui mini right floated pagination menu">
                                <a class="icon item">
                                    <i class="left chevron icon"></i>
                                </a>
                                <a class="item selectPage">1</a>
                                <a class="item selectPage">2</a>
                                <a class="item selectPage">3</a>
                                <a class="item selectPage">4</a>
                                <a class="icon item you">
                                    <i class="right chevron icon"></i>
                                </a>
                            </div>
                            <a href="/blogsinput" class="ui mini left floated teal bafsic button">新增</a>
                        </th>
                    </tr>
                </tfoot>
            </table>
        </div>
        <!--修改-->
        <div class="ui first coupled modal" style="padding: 40px !important;">
            <!--中间内容-->
            <div class="m-container">
                <!--container自适应-->
                <div class="ui stackable container">
                    <form id="form" action="#" method="POST" class="ui form">
                        <input type="hidden" name="published">
                        <input type="hidden" name="uid">
                        <input type="hidden" name="blogCode">
                        <div class="required field">
                            <div class="ui left labeled input">
                                <!--compact自适应文字宽度-->
                                <div class="ui selection compact teal basic dropdown label">
                                    <input type="hidden" name="flag" value="原创">
                                    <i class="dropdown icon"></i>
                                    <div class="text">原创</div>
                                    <div class="menu">
                                        <div class="item" data-value="原创">原创</div>
                                        <div class="item" data-value="转载">转载</div>
                                        <div class="item" data-value="翻译">翻译</div>
                                    </div>
                                </div>
                                <input type="text" name="title1" placeholder="标题">
                            </div>
                            <!--警告内容提示-->
                            <div class="ui error message">

                            </div>
                        </div>
                        <br>
                        <br>
                        <br>
                        <br>
                        <div class="required field">
                            <div id="div1" >
                                <!-- <p>欢迎使用 <b>wangEditor</b> 富文本编辑器</p> -->
                            </div>
                            <textarea  placeholder="编译后的内容" name="content" id="text1" cols="10" rows="15"></textarea>
                        </div>
                        <div class="two fields">
                            <div class="required field">
                                <div class="ui left labeled action input">
                                    <label class="ui compact teal basic label">分类</label>
                                    <div class="ui selection fluid dropdown">
                                        <input type="hidden" name="tname">
                                        <i class="dropdown icon"></i>
                                        <div class="default text">分类</div>
                                        <div id="types1" class="menu">
    <!--                                    <div class="item" data-value="个人生活">个人生活</div>-->
    <!--                                    <div class="item" data-value="学习">学习</div>-->
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="field">
                                <div class="ui left labeled action input">
                                    <label class="ui compact teal basic label">标签</label>
                                    <div class="ui selection fluid multiple search dropdown">
                                        <input type="hidden" name="tag">
                                        <i class="dropdown icon"></i>
                                        <div class="default text">标签</div>
                                        <div id="tags" class="menu">
                                            <!--                                    <div class="item" data-value="Java">Java</div>-->
                                            <!--                                    <div class="item" data-value="SpringBoot">SpringBoot</div>-->
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="required field">
                            <div class="ui left labeled input">
                                <label class="ui teal basic label">首图</label>
                                <input type="text" name="firstPicture1" placeholder="首图引用地址">
                            </div>
                        </div>
                        <div class="required field">
                            <textarea name="description1" placeholder="博客描述..." maxlength="200"></textarea>
                        </div>
                        <div class="inline fields">
                            <div class="field">
                                <div class="ui checkbox">
                                    <input type="checkbox" id="recommend" name="recommend" checked class="hidden">
                                    <label for="recommend">推荐</label>
                                </div>
                            </div>
                            <div class="field">
                                <div class="ui checkbox">
                                    <input type="checkbox" id="shareStatement" name="shareStatement" class="hidden">
                                    <label for="shareStatement">转载声明</label>
                                </div>
                            </div>
                            <div class="field">
                                <div class="ui checkbox">
                                    <input type="checkbox" id="appreciation" name="appreciation" class="hidden">
                                    <label for="appreciation">赞赏</label>
                                </div>
                            </div>
                            <div class="field">
                                <div class="ui checkbox">
                                    <input type="checkbox" id="commentabled" name="commentabled" class="hidden">
                                    <label for="commentabled">评论</label>
                                </div>
                            </div>
                        </div>

                        <div class="ui right aligned container">
                            <button id="save-bth" class="ui secondary submit button">保存</button>
                            <button id="publish-bth" class="ui teal submit button">发布</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <!--底部footer-->
    <footer th:replace="admin/_fragments_after :: footer" class="ui inverted vertical segment m-padded-tb-massive">
        <div class="ui center aligned container">
            <!--布局16份,3337-->
            <div class="ui inverted divided stackable grid">
                <div class="three wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../../static/images/dymp.jpg" th:src="@{/images/dymp.jpg}" class="ui rounded image" alt="" style="width: 100px;">
                        </div>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">最新博客</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list">
                        <a href="#" class="item">用户故事</a>
                        <a href="#" class="item">用户故事</a>
                        <a href="#" class="item">用户故事</a>
                    </div>
                </div>
                <div class="three wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">联系我</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list">
                        <a href="#" class="item">Email：dyinin@qq.com</a>
                        <a href="#" class="item">QQ:2985922950</a>
                    </div>
                </div>
                <div class="seven wide column">
                    <h4 class="ui inverted header m-text-thin m-text-spaced">dingyu</h4>
                    <!--竖着的列表-->
                    <div class="ui inverted link list m-text-thin m-text-spaced m-opacity-mini">
                        <p>这是我的个人博客</p>
                    </div>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-mini">Copyright © 2020-2021 DingYu Designed by DingYu</p>
        </div>
    </footer>
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
    <script src="http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"></script>
    <script src="../../static/js/editon.js" th:src="@{/js/editon.js}"></script>
    <script src="../../static/js/blogsupdateinput.js" th:src="@{/js/blogsupdateinput.js}"></script>
    <script>
        $(".menu_toggle").click(function () {
            $(".m-item").toggleClass("m-mobile-hide");
        })
        /**头像**/
        $('.ui.dropdown').dropdown({
            on: "click"
        });
        /**清楚按钮**/
        $("#clear_but")
            .on("click",function(){
            $("#123")
                .dropdown("clear");
        });
    </script>
    <script src="../../static/js/blogs.js" th:src="@{/js/blogs.js}"></script>
</body>

</html>